//
//  ViewController.swift
//  WKImageButtonDemo
//
//  Created by wenkai on 2017/12/6.
//  Copyright © 2017年 wenkai. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        
        let btn = UIButton(frame: CGRect(x: 0,
                                         y: 0,
                                         width: 100,
                                         height: 200))
        btn.set(UIImage(named: "图片名字"),
                title: "标题",
                titlePosition: .left,
                additionalSpcaing: 10,
                state: .normal)
        self.view.addSubview(btn)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

